package com.tiny.work.leetcode;

public class addTwoNumbers {


    public class ListNode {

        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }

    public ListNode addTwoNumbers(ListNode l1, ListNode l2) {
        ListNode cur1 = l1;
        ListNode cur2 = l2;

        if (cur1 == null || cur2 == null) {
            return cur1 == null ? cur2 : cur1;
        }

        return cur1;
    }
}
